.basic-table {
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 10px;

  table {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    margin-top: 5px;
    color: white
  }
  .spinner-warp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;

    .spinner-icon {
      position: absolute;
      top: 48%;
      left: 49%;
    }
  }
  .tbody-wrapper {
    /* overflow: auto; */
    height: 100%;
    width: 100%;
    position: relative;
  }
  thead {
    margin-right: 8px;
    border-bottom:1px solid #4d515a;
    flex-grow: 0;
    flex-shrink: 0;
  }
  tbody {
    /* height: 100%; */
    width: 100%;
    /* overflow-y: scroll; */
    position: relative;
    flex: 1;
    overflow: auto;
  }

  .basic-table-pagination {
    height: 40px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    button {
      cursor: pointer;
      border-radius: 50%;
      height: 30px;
      border: 0;
      width: 30px;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .cursor-pointer:hover {
    cursor: pointer;
    text-decoration: underline;
    color: rgb(110, 159, 255);
  }
  tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }
  tr {
    height: max-content;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
    display: flex;

    justify-content: center;

    box-sizing: border-box;
    border-bottom: 1px solid var(--cui-border-color);
      color:white;
    th {
      font-weight: 500;
      min-width: 24px;
      flex: auto;
      align-items: center;
      padding: 8px;
      display: flex;

      justify-content: center;
      color:rgb(161 161 170)
    }

    td {
      min-width: 24px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      align-content: center;
      flex: auto;
      padding: 8px;
      height: initial;
      white-space: pre-wrap;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      &:last-child {
        border-right: none;
      }
      box-sizing: border-box;
    }
  }
}

.border-table {
  td {
    padding: 0px; /* 调整单元格内边距 */
    border-right: 1px solid rgba(204, 204, 220, 0.12); /* 给单元格右侧添加边框 */
    box-sizing: border-box;
  }

  th:last-child,
  td:last-child {
    border-right: none; /* 最后一列不需要右边框 */
  }
  .nested-td > tr:last-of-type{
    border-bottom: 0;
  }
  tr {
    td {
      /* padding: 0px; */
    }
    th {
      /* padding: 0px; */
    }
  }
  
  .nested-td {
    display: block;
    td {
      border: 0;
    }
  }
  .nested-td tr:last-child {
    border-bottom: none;
  }
}


  .pagination{

justify-content: flex-end;
    .basic-table-pagination button {
      background-color: rgba(204, 204, 220, 0.04);
    }
    button:hover {
      background-color: rgba(204, 204, 220, 0.04);
      color: rgba(204, 204, 220, 0.6);
    }
    .basic-table-pagination .active {
      background-color: rgba(204, 204, 220, 0.12);;
    }
    button[disabled] {
      background-color: rgba(204, 204, 220, 0.04);
      color: rgba(204, 204, 220, 0.6);
    }
    button[disabled]:hover {
      background-color: rgba(204, 204, 220, 0.04);
      color: rgba(204, 204, 220, 0.6);
    }
  }